<?php switch($content_type){
case 'ml_fl': ?>
<dl>
    <dd class="cp-header">
        <?php echo $entry_search_keywords; ?>
        <input type="text" id="keyword" value="<?php echo $keyword; ?>" />
        <input class="input-buttons" style="width:60px;height:24px;" type="button" id="search"  value="<?php echo $button_search; ?>" />
        <select id="fid" name="fid">
            <?php if($has_global_privilege){ ?>
            <option value=""><?php echo $text_select_forum; ?></option>
            <?php } ?>
            <?php foreach($forums as $forum){ ?>
            <option value="<?php echo $forum['forum_id']; ?>" <?php echo $forum_option_id==$forum['forum_id']?'selected="selected"':'' ?>><?php echo $forum['forum_name']; ?></option>
            <?php foreach($sub_forums[$forum['forum_id']] as $sub_forum){ ?>
                <option value="<?php echo $sub_forum['forum_id']; ?>" <?php echo $forum_option_id==$sub_forum['forum_id']?'selected="selected"':'' ?>>&nbsp;&nbsp;<?php echo $sub_forum['forum_name']; ?></option>
                <?php } ?>
            <?php } ?>
        </select>
    </dd>
    <dd class="cp-content">
        <?php if(!$forum_logs){ ?>
        <dl>
            <dd><?php echo $text_no_logs; ?></dd>
        </dl>
        <?php }else{ ?>
        <form id="view-forum-logs-form" action="" method="post">
        <dl class="cp-list-heading3">
            <dd class="cp-list-heading3-first"><?php echo $text_heading_operator; ?></dd>
            <dd class="cp-list-heading3-second"><?php echo $text_heading_ip; ?></dd>
            <dd class="cp-list-heading3-third"><?php echo $text_heading_time; ?></dd>
            <dd class="cp-list-heading3-forth"><?php echo $text_heading_action; ?></dd>
            <dd><?php echo $text_heading_mark; ?></dd>
        </dl>
        <?php foreach($forum_logs as $forum_log){ ?>
        <dl class="cp-list3">
            <dd class="cp-list3-first">
                <a href="<?php echo $forum_log['operator_profile_link']; ?>"><strong><?php echo $forum_log['operator_name']; ?></strong></a>
            </dd>
            <dd class="cp-list3-second">
                <?php echo $forum_log['log_ip']; ?>
            </dd>
            <dd class="cp-list3-third">
                <?php echo $forum_log['log_time']; ?>
            </dd>
            <dd class="cp-list3-forth">
                <?php echo $forum_log['log_action']; ?>
            </dd>
            <dd>
                <input type="checkbox" name="marked_l_id[]" value="<?php echo $forum_log['log_id'] ; ?>" />
            </dd>
        </dl>
        <?php } ?>
        <?php if($show_delete_buttons){ ?>
        <dl class="cp-list-bottom">
            <dd>
                <?php if(count($forum_logs)>1){ ?>
                &bull; <a href="#" onclick="marklist('view-forum-logs-form', 'marked_l', true); return false;"><?php echo $text_mark_all; ?></a>
                &bull; <a href="#" onclick="marklist('view-forum-logs-form', 'marked_l', false); return false;"><?php echo $text_unmark_all; ?></a>
                <?php } ?>
                <input class="input-buttons" type="submit" name="delete-all" value="<?php echo $button_delete_all; ?>" onclick="{if(confirm('<?php echo $text_confirm_submit; ?>')){this.document.view-forum-logs-form.submit();return true;}return false;}" />&nbsp;&nbsp;
                <input class="input-buttons" type="submit" name="delete-marked" value="<?php echo $button_delete_marked; ?>" onclick="{if(confirm('<?php echo $text_confirm_submit; ?>')){this.document.view-forum-logs-form.submit();return true;}return false;}" />
            </dd>
        </dl>
        <?php } ?>
        </form>
        <?php } ?>
    </dd>
    <div class="forum-pagination"><?php echo $pagination; ?></div>
</dl>
<script type="text/javascript"><!--
$('#fid').bind('change', function() {
    url = 'index.php?route=community/mcp&mode=ml&action=fl';

    var fid = $('.cp-header select[name=\'fid\']').attr('value');

    if(fid != ''){
        url += '&fid=' + encodeURIComponent(fid);
    }

    location = url;
});

$('#keyword').keydown(function(e) {
    if (e.keyCode == 13) {
        $('#search').trigger('click');
    }
});

$('#search').live('click', function() {
    url = 'index.php?route=community/mcp&mode=ml&action=fl<?php echo $furl; ?>';

    var keyword = $('#keyword').attr('value');

    if(keyword !=''){
        url += '&kw=' + encodeURIComponent(keyword);
    }

    location = url;
});
//--></script>
<?php break; ?>
<?php } ?>